package top.lingkang.securityoauth2.client.utils;

import top.lingkang.securityoauth2.client.config.Oauth2ClientProperties;

import java.util.HashMap;

/**
 * @author lingkang
 * Created by 2022/7/6
 */
public class GenerateUtils {
    public static HashMap getClientBase(Oauth2ClientProperties clientProperties) {
        HashMap<String, Object> param = new HashMap<>();
        param.put("client_id", clientProperties.getClientId());
        param.put("client_secret", clientProperties.getClientSecret());
        param.put("resource_id", clientProperties.getResourceId());
        return param;
    }
}
